package com.lzymall.service;

import com.lzymall.common.ServiceResponse;
import com.lzymall.pojo.User;

public interface IUserService {

    ServiceResponse<User> login(String username, String password);

    ServiceResponse<String> register(User user);

    ServiceResponse<String> checkValid(String str, String type);

    ServiceResponse<String> selectQuestion(String username);

    ServiceResponse<String> checkAnswer(String username, String question, String answer);

    ServiceResponse<String>  forgetRestPassword(String username, String newPassword, String forgetToken);

    ServiceResponse<String> resetPassword(String oldPassword, String newPassword, User user);

    ServiceResponse<User> updateInformation(User user);

    ServiceResponse<User> getInformation(Integer userId);

    ServiceResponse<String> checkAdminRole(User user);
}
